<?php
define('DS',DIRECTORY_SEPARATOR);
$root = dirname(dirname(__FILE__)).DS;
$adminPath = dirname(__FILE__).DS;
$host = 'http://'.$_SERVER['HTTP_HOST'];
$cssPath = $host.'/css';
$jsPath = $host.'/js';
$imgPath = $host.'/img';
$xmlPath = $root.'xml';
$classPath = $adminPath.'class'.DS;
$loginDB = $xmlPath.DS.'user.xml';
$contentDB = $xmlPath.DS.'ThankStudio.xml';

require_once $classPath.'xml.class.php';
require_once $classPath.'userXml.class.php';
require_once($classPath.'tool.class.php');
require_once($classPath.'img.class.php');
require_once($classPath.'xmlTool.class.php');
$sessionID = Tool::_getSession('userID');
$sessionName = Tool::_getSession('userName');
$sessionPasswd = Tool::_getSession('passwd');
?>
